package com.data;

/**
 * @author sad
 */
public class Wheel implements Comparable<Wheel> {

    private transient Long lastTimeUpdateSpeed;
    private transient Universe universe;
    private transient int currentSpeed;
    private transient int expectedSpeed;
    private transient int actualSpeed;
    private transient long lastChangeSpeedTimeMark;
    private String wheelName;
    private int channel;
    private int id;
    private transient int currentAngel;
    private int x;
    private int y;
    private transient int screenX;
    private transient int screenY;
    private boolean forsingState = false;
    
    public boolean isForsingState() {
        return forsingState;
    }

    public void setForsingState(boolean forsingState) {
        this.forsingState = forsingState;
    }

    public long getLastChangeSpeedTimeMark() {
        return lastChangeSpeedTimeMark;
    }

    public void setLastChangeSpeedTimeMark(long lastChangeSpeedTimeMark) {
        this.lastChangeSpeedTimeMark = lastChangeSpeedTimeMark;
    }

    public int getActualSpeed() {
        return actualSpeed;
    }

    public void setActualSpeed(int actualSpeed) {
        this.actualSpeed = actualSpeed;
    }

    public int getScreenX() {
        return screenX;
    }

    public void setScreenX(int screenX) {
        this.screenX = screenX;
    }

    public int getScreenY() {
        return screenY;
    }

    public void setScreenY(int screenY) {
        this.screenY = screenY;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getCurrentAngle() {
        return currentAngel;
    }

    public void setCurrentAngle(int currentAngel) {
        this.currentAngel = currentAngel;
    }

    public String getWheelName() {
        return wheelName;
    }

    public void setWheelName(String wheelName) {
        this.wheelName = wheelName;
    }

    public int getChannel() {
        return channel;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Universe getUniverse() {
        return universe;
    }

    public void setUniverse(Universe universe) {
        this.universe = universe;
    }

    public int getCurrentSpeed() {
        return currentSpeed;
    }

    public void setCurrentSpeed(int currentSpeed) {
        this.currentSpeed = currentSpeed;
    }

    public int getExpectedSpeed() {
        return expectedSpeed;
    }

    public void setExpectedSpeed(int expectedSpeed) {
        this.expectedSpeed = expectedSpeed;
    }

    @Override
    public String toString() {
        return "[" + id + "] " + wheelName;
    }

    @Override
    public int compareTo(Wheel o) {
        return id - o.id;
    }

    public Long getLastTimeUpdateSpeed() {
        return lastTimeUpdateSpeed;
    }

    public void setLastTimeUpdateSpeed(Long lastTimeUpdateSpeed) {
        this.lastTimeUpdateSpeed = lastTimeUpdateSpeed;
    }
}
